function foo<T, O>(name: T, age: O) {}
foo<string, number>("kobe", 12);
foo<string, number>("why", 12);

function bar<T>(arg: T): T {
  return arg;
}

const res1 = bar<number>(123);
const res2 = bar<string>("123");

// 类型推导(实现：vue3 中 ref)，自动推导, 但是已有可能会推导错误
const res = bar("aaaa");

export {};
